home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: num2str.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 6e 75 6d 32 73 74 72 |\section|{num2str|
|00000010| 20 2d 2d 2d 20 4e 75 6d | 62 65 72 20 74 6f 20 73 | --- Num|ber to s|
|00000020| 74 72 69 6e 67 20 63 6f | 6e 76 65 72 73 69 6f 6e |tring co|nversion|
|00000030| 7d 0d 5c 6c 61 62 65 6c | 7b 66 6e 3a 6e 75 6d 32 |}.\label|{fn:num2|
|00000040| 73 74 72 7d 0d 5c 69 6e | 64 65 78 7b 6e 75 6d 32 |str}.\in|dex{num2|
|00000050| 73 74 72 28 29 7d 0d 5c | 69 6e 64 65 78 7b 6e 75 |str()}.\|index{nu|
|00000060| 6d 62 65 72 20 74 6f 20 | 73 74 72 69 6e 67 20 63 |mber to |string c|
|00000070| 6f 6e 76 65 72 73 69 6f | 6e 7d 0d 5c 62 65 67 69 |onversio|n}.\begi|
|00000080| 6e 7b 72 61 69 6c 7d 0d | 4e 75 6d 54 6f 53 74 72 |n{rail}.|NumToStr|
|00000090| 20 3a 20 27 6e 75 6d 32 | 73 74 72 27 20 27 28 27 | : 'num2|str' '('|
|000000a0| 20 53 63 61 6c 61 72 20 | 27 29 27 20 3b 0d 5c 65 | Scalar |')' ;.\e|
|000000b0| 6e 64 7b 72 61 69 6c 7d | 0d 0d 5c 76 65 72 62 2b |nd{rail}|..\verb+|
|000000c0| 6e 75 6d 32 73 74 72 2b | 20 63 6f 6e 76 65 72 74 |num2str+| convert|
|000000d0| 73 20 61 20 72 65 61 6c | 20 73 63 61 6c 61 72 20 |s a real| scalar |
|000000e0| 69 6e 74 6f 20 61 20 24 | 31 78 31 24 20 73 74 72 |into a $|1x1$ str|
|000000f0| 69 6e 67 20 6d 61 74 72 | 69 78 2e 0d 54 68 69 73 |ing matr|ix..This|
|00000100| 20 6d 61 79 20 72 65 73 | 75 6c 74 20 69 6e 20 73 | may res|ult in s|
|00000110| 63 69 65 6e 74 69 66 69 | 63 20 6e 6f 74 61 74 69 |cientifi|c notati|
|00000120| 6f 6e 20 69 66 20 74 68 | 65 20 73 63 61 6c 61 72 |on if th|e scalar|
|00000130| 20 69 73 20 70 61 72 74 | 69 63 75 6c 61 72 6c 79 | is part|icularly|
|00000140| 0d 6c 61 72 67 65 20 6f | 72 20 73 6d 61 6c 6c 2e |.large o|r small.|
|00000150| 20 20 41 6e 20 65 72 72 | 6f 72 20 77 69 6c 6c 20 | An err|or will |
|00000160| 72 65 73 75 6c 74 20 69 | 66 20 74 68 65 20 61 72 |result i|f the ar|
|00000170| 67 75 6d 65 6e 74 20 69 | 73 20 6e 6f 74 20 61 20 |gument i|s not a |
|00000180| 72 65 61 6c 0d 73 63 61 | 6c 61 72 2e 0d 0d 24 5c |real.sca|lar...$\|
|00000190| 4c 6f 6e 67 72 69 67 68 | 74 61 72 72 6f 77 24 20 |Longrigh|tarrow$ |
|000001a0| 54 68 69 73 20 69 73 20 | 6e 6f 74 20 61 6e 20 5c |This is |not an \|
|000001b0| 52 4c 61 42 5c 20 62 75 | 69 6c 74 2d 69 6e 20 66 |RLaB\ bu|ilt-in f|
|000001c0| 75 6e 63 74 69 6f 6e 2e | 20 20 54 68 69 73 20 66 |unction.| This f|
|000001d0| 75 6e 63 74 69 6f 6e 0d | 69 73 20 6e 6f 72 6d 61 |unction.|is norma|
|000001e0| 6c 6c 79 20 6c 6f 61 64 | 65 64 20 6f 6e 20 73 74 |lly load|ed on st|
|000001f0| 61 72 74 2d 75 70 20 66 | 72 6f 6d 20 74 68 65 20 |art-up f|rom the |
|00000200| 5c 76 65 72 62 2b 6e 75 | 6d 32 73 74 72 2e 72 2b |\verb+nu|m2str.r+|
|00000210| 20 66 69 6c 65 20 69 6e | 20 74 68 65 0d 73 74 61 | file in| the.sta|
|00000220| 6e 64 61 72 64 20 5c 76 | 65 72 62 2b 72 6c 69 62 |ndard \v|erb+rlib|
|00000230| 2b 20 64 69 72 65 63 74 | 6f 72 79 2e 20 55 73 65 |+ direct|ory. Use|
|00000240| 20 6f 66 20 74 68 65 20 | 5c 76 65 72 62 2b 2d 72 | of the |\verb+-r|
|00000250| 2b 20 6f 70 74 69 6f 6e | 2c 20 69 6e 63 6f 72 72 |+ option|, incorr|
|00000260| 65 63 74 6c 79 20 0d 73 | 65 74 74 69 6e 67 20 74 |ectly .s|etting t|
|00000270| 68 65 20 5c 76 65 72 62 | 2b 52 4c 41 42 5f 4c 49 |he \verb|+RLAB_LI|
|00000280| 42 5f 44 49 52 2b 20 65 | 6e 76 69 72 6f 6e 6d 65 |B_DIR+ e|nvironme|
|00000290| 6e 74 61 6c 20 76 61 72 | 69 61 62 6c 65 2c 20 6f |ntal var|iable, o|
|000002a0| 72 20 6d 6f 64 69 66 79 | 69 6e 67 0d 5c 76 65 72 |r modify|ing.\ver|
|000002b0| 62 2b 6e 75 6d 32 73 74 | 72 2e 72 2b 20 6d 61 79 |b+num2st|r.r+ may|
|000002c0| 20 6d 61 6b 65 20 74 68 | 69 73 20 66 75 6e 63 74 | make th|is funct|
|000002d0| 69 6f 6e 20 75 6e 61 76 | 61 69 6c 61 62 6c 65 2e |ion unav|ailable.|
|000002e0| 0d 0d 0d 5c 70 61 72 61 | 67 72 61 70 68 7b 45 78 |...\para|graph{Ex|
|000002f0| 61 6d 70 6c 65 7d 0d 5c | 69 6e 64 65 78 7b 65 78 |ample}.\|index{ex|
|00000300| 61 6d 70 6c 65 20 6f 66 | 20 6e 75 6d 32 73 74 72 |ample of| num2str|
|00000310| 28 29 7d 0d 5c 69 6e 64 | 65 78 7b 6e 75 6d 32 73 |()}.\ind|ex{num2s|
|00000320| 74 72 28 29 21 65 78 61 | 6d 70 6c 65 7d 0d 5c 62 |tr()!exa|mple}.\b|
|00000330| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 3e |egin{ver|batim}.>|
|00000340| 20 61 20 3d 20 33 2e 34 | 33 32 31 0d 20 61 20 3d | a = 3.4|321. a =|
|00000350| 0d 20 20 20 20 20 33 2e | 34 33 0d 3e 20 62 20 3d |. 3.|43.> b =|
|00000360| 20 6e 75 6d 32 73 74 72 | 28 61 29 0d 33 2e 34 33 | num2str|(a).3.43|
|00000370| 32 0d 3e 20 73 68 6f 77 | 28 62 29 0d 20 20 20 6e |2.> show|(b). n|
|00000380| 61 6d 65 3a 20 20 20 20 | 20 20 62 20 20 20 20 20 |ame: | b |
|00000390| 20 20 0d 20 20 20 63 6c | 61 73 73 3a 20 20 20 20 | . cl|ass: |
|000003a0| 20 73 74 72 69 6e 67 20 | 20 0d 20 20 20 20 74 79 | string | . ty|
|000003b0| 70 65 3a 20 20 20 20 20 | 73 74 72 69 6e 67 20 20 |pe: |string |
|000003c0| 0d 20 20 20 20 20 6e 72 | 3a 20 20 20 20 20 20 31 |. nr|: 1|
|000003d0| 20 20 20 20 20 20 20 0d | 20 20 20 20 20 6e 63 3a | .| nc:|
|000003e0| 20 20 20 20 20 20 31 20 | 20 20 20 20 20 20 0d 3e | 1 | .>|
|000003f0| 20 6e 75 6d 32 73 74 72 | 28 32 39 38 36 34 39 36 | num2str|(2986496|
|00000400| 37 38 29 0d 32 2e 39 38 | 36 65 2b 30 38 0d 3e 20 |78).2.98|6e+08.> |
|00000410| 73 68 6f 77 28 6e 75 6d | 32 73 74 72 28 32 39 38 |show(num|2str(298|
|00000420| 36 34 39 36 37 38 29 29 | 0d 20 20 20 6e 61 6d 65 |649678))|. name|
|00000430| 3a 20 20 20 20 20 20 4e | 55 4c 4c 20 20 20 20 0d |: N|ULL .|
|00000440| 20 20 20 63 6c 61 73 73 | 3a 20 20 20 20 20 73 74 | class|: st|
|00000450| 72 69 6e 67 20 20 0d 20 | 20 20 20 74 79 70 65 3a |ring . | type:|
|00000460| 20 20 20 20 20 73 74 72 | 69 6e 67 20 20 0d 20 20 | str|ing . |
|00000470| 20 20 20 6e 72 3a 20 20 | 20 20 20 20 31 20 20 20 | nr: | 1 |
|00000480| 20 20 20 20 0d 20 20 20 | 20 20 6e 63 3a 20 20 20 | . | nc: |
|00000490| 20 20 20 31 20 20 20 20 | 20 0d 5c 65 6e 64 7b 76 | 1 | .\end{v|
|000004a0| 65 72 62 61 74 69 6d 7d | 0d 0d 53 65 65 20 61 6c |erbatim}|..See al|
|000004b0| 73 6f 3a 20 50 61 67 65 | 7e 5c 70 61 67 65 72 65 |so: Page|~\pagere|
|000004c0| 66 7b 66 6e 3a 69 6e 74 | 32 73 74 72 7d 20 5c 76 |f{fn:int|2str} \v|
|000004d0| 65 72 62 2b 69 6e 74 32 | 73 74 72 28 29 2b 2c 0d |erb+int2|str()+,.|
|000004e0| 50 61 67 65 7e 5c 70 61 | 67 65 72 65 66 7b 66 6e |Page~\pa|geref{fn|
|000004f0| 3a 73 70 72 69 6e 74 66 | 7d 20 5c 76 65 72 62 2b |:sprintf|} \verb+|
|00000500| 73 70 72 69 6e 74 66 28 | 29 2b 2e 0d 0d 5c 6e 65 |sprintf(|)+...\ne|
|00000510| 77 70 61 67 65 0d 0d 0d | 0d |wpage...|. |
+--------+-------------------------+-------------------------+--------+--------+